class CreateRequests < ActiveRecord::Migration
  def self.up
    create_table :requests do |t|
      t.integer :car_brand_id
      t.integer :car_model_id
      t.integer :year
      t.integer :engine_type_id
      t.integer :gearbox_type_id
      t.integer :parts_group_id
      t.integer :part_id
      t.string :gsm
      t.string :email
      t.integer :city_id
      t.integer :offers_city_id

      t.timestamps
    end
  end

  def self.down
    drop_table :requests
  end
end
